<template>
  <div>
    <h3>service配置</h3>
    <el-row :gutter="20">
      <el-col :span="5">
        包名：
        <el-input class="input-package" placeholder="service包名" :disabled="!projectSetting.createService" v-model="serviceSetting.servicePackage"/>
      </el-col>
      <el-col :span="16">
        <el-col :span="6">
          <el-checkbox label="创建接口" :disabled="!projectSetting.createService" v-model="serviceSetting.createInterface"/>
        </el-col>
        <el-col :span="6">
          <el-checkbox label="接口I开头" :disabled="!serviceSetting.createInterface"
                       v-model="serviceSetting.startWithI"/>
        </el-col>
        <el-col :span="6">
          <el-checkbox label="使用基础Service" :disabled="!projectSetting.createService|!mapperSetting.extendBaseMapper"
                       v-model="serviceSetting.useBaseService"/>
        </el-col>
        <el-col :span="6">
          <el-checkbox label="事务注解" :disabled="!projectSetting.createService" v-model="serviceSetting.useTransactional"/>
        </el-col>
      </el-col>
    </el-row>


  </div>
</template>

<script>
  import {mapGetters} from "vuex";
  export default {
    name: "Project",
    computed: {
      ...mapGetters(["serviceSetting","projectSetting","mapperSetting"])
    }
  }
</script>

<style scoped>
  @import "../../../static/css/content.css";
  .input-package{
    width: 52%;
  }
</style>
